home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / Locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.5 KB  |  65 lines  |  [TEXT/MPS ]

  1. /*
  2.     Locale.h - Localization
  3.     
  4.     Copyright Apple Computer, Inc.  1988, 1990-1991
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #ifndef __LOCALE__
  10. #define __LOCALE__
  11.  
  12. /* 
  13.  *   Declarations
  14.  */
  15.  
  16. #ifndef NULL 
  17. #define NULL 0
  18. #endif
  19.  
  20. #define LC_ALL        1 /* entire locale */
  21. #define LC_COLLATE    2 /* strcoll and strxfrm functions */
  22. #define LC_CTYPE      3 /* character handling and multibyte functions */
  23. #define LC_MONETARY   4 /* monetary formatting information returned by localeconv */
  24. #define LC_NUMERIC    5 /* decimal point formatting input/output and string conversions */
  25. #define LC_TIME       6 /* strftime function */
  26.  
  27. struct lconv {
  28.     char *decimal_point;       /* "." */
  29.     char *thousands_sep;       /* "" */
  30.     char *grouping;            /* "" */
  31.     char *int_curr_symbol;     /* "" */
  32.     char *currency_symbol;     /* "" */
  33.     char *mon_decimal_point;   /* "" */
  34.     char *mon_thousands_sep;   /* "" */
  35.     char *mon_grouping;        /* "" */
  36.     char *positive_sign;       /* "" */
  37.     char *negative_sign;       /* "" */
  38.     char frac_digits;          /* CHAR_MAX */
  39.     char int_frac_digits;      /* CHAR_MAX */
  40.     char p_cs_precedes;        /* CHAR_MAX */
  41.     char p_sep_by_space;       /* CHAR_MAX */
  42.     char n_cs_precedes;        /* CHAR_MAX */
  43.     char n_sep_by_space;       /* CHAR_MAX */
  44.     char p_sign_posn;          /* CHAR_MAX */
  45.     char n_sign_posn;          /* CHAR_MAX */
  46. };
  47.  
  48.  
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52.  
  53. /*
  54.  *  functions
  55.  */
  56.  
  57. char *setlocale (int category, const char *locale);
  58. struct lconv *localeconv (void);
  59.  
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63.  
  64. #endif __LOCALE__
  65.